﻿//********************************************************************************//
//创建日期：<创建日期，2016-04-12>
//创建作者：<张继玮，zhangjiwei@shanghai3h.com>
//功能说明：管理块信息
//********************************************************************************//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BLL;
using System.Data;

namespace Web.AuthorizationSystem
{
    public partial class WorkFlowSetting : BasePage
    {
        #region 属性

        /// <summary>
        /// 流程类型BLL
        /// </summary>
        WF_TYPEBLL _WF_TYPEBLL = new WF_TYPEBLL();

        /// <summary>
        /// 流程步骤BLL
        /// </summary>
        WF_STEPBLL _WF_STEPBLL = new WF_STEPBLL();

        /// <summary>
        /// 流程步骤关系BLL
        /// </summary>
        WF_STEPRELATION _WF_STEPRELATION = new WF_STEPRELATION();

        /// <summary>
        /// 流程步骤角色BLL
        /// </summary>
        WF_STEPROLE _WF_STEPROLE = new WF_STEPROLE();
        #endregion

        #region 变量

        /// <summary>
        /// 流程类型操作唯一对象实体
        /// </summary>
        private WF_TYPE _wf_type ;

        /// <summary>
        /// 流程步骤操作唯一对象实体
        /// </summary>
        private WF_STEP _wf_step ;

        /// <summary>
        /// 流程步骤关系操作唯一对象实体
        /// </summary>
        private WF_STEPRELATION _wf_steprelation ;

        /// <summary>
        /// 流程步骤角色操作唯一对象实体
        /// </summary>
        private WF_STEPROLE _wf_steprole;
        #endregion

        #region 事件
        /// <summary>
        /// 页面加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }
        #endregion

        #region 方法

        #region 流程类型 wf_type

        /// <summary>
        /// 查询类型
        /// </summary>
        /// <param name="workflowName"></param>
        /// <returns></returns>
        private DataTable Query_type(string workflowName) 
        {
            DataTable result;
            if (string.IsNullOrEmpty(workflowName))
            {
                result = _WF_TYPEBLL.SelectWF_TYPEsAll();
            }
            else
            {
                string whereCondition = string.Format(" (S_LIUCHENGMC like '%{0}%') or (S_LIUCHENGLB like '%{0}%')",workflowName);
                result=_WF_TYPEBLL.SelectWF_TYPEsDynamic(whereCondition, "I_LIUCHENGID");
            }
            return result;
        }

       

        #endregion

        #endregion
    }
}